<div class="header">
    <div class="w1100">
        <h1 class="logo"><a href=""><img src="images/logo.png" /></a></h1>
        <div class="navL">
            <a href="<?php echo base_url();?>">首页</a>
            <a href="index.php/manage/mcard">模特卡制作</a>
            <a href="index.php/interview/star">每日之星</a>
            <a href="index.php/help/about">关于我们</a>
        </div>
        <div class="memberR">
            <?php
            $email = !empty($this->session->userdata['userinfo']['email'])? $this->session->userdata['userinfo']['email'] :'';
            $realname = !empty($this->session->userdata['userinfo']['realname'])? $this->session->userdata['userinfo']['realname'] :'';
            $phone = !empty($this->session->userdata['userinfo']['phone'])? $this->session->userdata['userinfo']['phone'] :'';
            $uname = isset($realname) && !empty($realname) ? $realname : $email;
            $uname = empty($realname) && empty($email) ? $phone : $realname;
            if(isset($this->session->userdata['id']) && !empty($this->session->userdata['id'])){?>

                <a>欢迎您，<?php echo $uname;?></a>
                <a href='index.php/manage/mweibo' target='_self'>账号管理</a>
                <a href='index.php/manage/userinfo' target='_self'>资料修改</a>
                <a href='index.php/login/show'' target='_self'>我的主页</a>
                <a href='index.php/login/logout'>退出</a>";
            <?php }else{?>

                <a href="index.php/login/registere">麻豆注册</a><a href="index.php/login/login">麻豆登陆</a>

            <?php }?>
        </div>
    </div>
</div>
